package com.example.project.service;

import com.example.project.entity.TcdmSecureHazardAssessmentRules;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.Date;
import java.util.List;

/**
 * (TcdmSecureHazardAssessmentRules)表服务接口
 *
 * @author makejava
 * @since 2024-02-23 15:18:23
 */
public interface TcdmSecureHazardAssessmentRulesService {

    /**
     * 通过ID查询单条数据
     *
     * @param tsharId 主键
     * @return 实例对象
     */
    TcdmSecureHazardAssessmentRules queryById(Integer tsharId);


    /**
     * 查询所有数据
     *
     * @return 所有数据
     */
    List<TcdmSecureHazardAssessmentRules> findList();
    /**
     * 分页查询
     *
     * @param tcdmSecureHazardAssessmentRules 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<TcdmSecureHazardAssessmentRules> queryByPage(TcdmSecureHazardAssessmentRules tcdmSecureHazardAssessmentRules, PageRequest pageRequest, Date star, Date end);

    /**
     * 新增数据
     *
     * @param tcdmSecureHazardAssessmentRules 实例对象
     * @return 实例对象
     */
    TcdmSecureHazardAssessmentRules insert(TcdmSecureHazardAssessmentRules tcdmSecureHazardAssessmentRules);

    /**
     * 修改数据
     *
     * @param tcdmSecureHazardAssessmentRules 实例对象
     * @return 实例对象
     */
    TcdmSecureHazardAssessmentRules update(TcdmSecureHazardAssessmentRules tcdmSecureHazardAssessmentRules);

    /**
     * 通过主键删除数据
     *
     * @param tsharId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer tsharId);

    List<TcdmSecureHazardAssessmentRules> queryCondition(TcdmSecureHazardAssessmentRules tcdmSecureHazardAssessmentRules);
}
